#include  <stdio.h>
int main(void)
{
	int a,b;
	scanf("%d%d",&a,&b);
	if (a*a+b*b>100)
		printf("%d\n",a+b);
	else
		printf("%d\n",a-b);
	return 0;
}

	
